package com.ternnetwork.core.service.impl.log;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ternnetwork.commons.utils.ExtendedStringUtils;
import com.ternnetwork.core.dao.log.UserPasswordResetLogDao;
import com.ternnetwork.core.entity.User;
import com.ternnetwork.core.entity.log.UserPasswordResetLog;
import com.ternnetwork.core.service.log.UserPasswordResetLogService;


@Service("userPasswordResetLogService")
public class UserPasswordResetLogServiceImpl implements UserPasswordResetLogService {

	@Resource
	private UserPasswordResetLogDao userPasswordResetLogDao;
	
	@Override
	public void doAdd(User user,String resetPassword){
		
		UserPasswordResetLog t=new UserPasswordResetLog();
		t.setUser(user);
		t.setResetPassword(resetPassword);
		userPasswordResetLogDao.persist(t);
	}
	
	
}
